#!/usr/bin/env node

const http = require('http');
const url = require('url');
const qs = require('querystring');

http.createServer((req,res)=>{
  parseURL();
  res.end('OK');
}).listen(8080);
function parseURL(strURL){
  const path = url.parse(strURL);

  console.log('href',path.href);
  console.log('protocal',path.protocol);
  console.log('auth:',path.auth);
  console.log('hostname',pa)
}
